package com.study;

import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;

/**
 * @author MI
 */
@SpringBootApplication
public class DemoApplication {

    public static void main(String[] args) {
        //Ctrl +c 先关闭 一些进程
        Runtime.getRuntime().addShutdownHook(new Thread(
                () -> {
                    System.out.println("可以执行一些方法");
                }
        ));
        SpringApplication.run(DemoApplication.class, args);
    }

}
